package com.tobeface.sns.domain.relationship;

import com.kissme.core.domain.AbstractDomain;
import com.tobeface.sns.domain.User;

/**
 * 
 * @author loudyn
 * 
 */
public class UserRelationship extends AbstractDomain {

	private static final long serialVersionUID = 1L;
	private User sender;
	private User receiver;

	private long createTime;

	UserRelationship() {
	}

	/**
	 * 
	 * @param sender
	 * @param receiver
	 */
	public UserRelationship(User sender, User receiver) {
		this.sender = sender;
		this.receiver = receiver;
		this.createTime = System.currentTimeMillis();
	}

	public User getSender() {
		return sender;
	}

	public UserRelationship setSender(User sender) {
		this.sender = sender;
		return this;
	}

	public User getReceiver() {
		return receiver;
	}

	public UserRelationship setReceiver(User receiver) {
		this.receiver = receiver;
		return this;
	}

	public long getCreateTime() {
		return createTime;
	}

	protected UserRelationship setCreateTime(long createTime) {
		this.createTime = createTime;
		return this;
	}

}
